package thread;

import java.util.concurrent.locks.ReentrantLock;

public class ThreadDemo10 {

    public static void main(String[] args) {
        ReentrantLock reentrantLock = new ReentrantLock(true);
        int n = 0;
        try {
            if (n == 0) {
                return;
            }else {
                return;
            }
        } finally {
            reentrantLock.unlock();
        }
    }
}
